def rev_word(inStr:str)->str:
    return ' '.join(inStr.split()[::-1])
    
print(rev_word("Python is kinda cool"))

# Print Output:
# cool kinda is Python
# Variables:
# {}
